<?php

namespace App\Http\Controllers;

use App\Library\Requests\Order\OrderCouponRequest;
use App\Library\Service\OrderService;
use Illuminate\Http\JsonResponse;

class OrderController extends BaseController
{
    public function __construct(OrderService $service)
    {
        $this->service = $service;
    }

    /**
     * 订单优惠券查询
     * @param OrderCouponRequest $request
     * @return JsonResponse
     *
     */
    public function coupon(OrderCouponRequest $request): JsonResponse
    {
        return $this->service->coupon($request);
    }
}
